Fixed the appointment generator