add appointment bug