Fix appointment bug