Fix make appointment crash