Fixed appointments and schedule form bug