model fix for appointment