Fixing the parseAppointments Error