root cause is appointmentPatientCheck.php, 'deleted'⇒array('$ne',true), is causing the function to return count zero instead of the actual number of appointments on the day. It was added for drag and drop.
will update code and check double appointment on one day no warning bug