Fixed Index out of Range exception during Add Appointment progress