fixed bugs in appointment_VC