bug in appointment model causing crash