fixed bug getAppointmentById