fix appointment's bug