Bugfix when storing a new appointment.