appointment back-end fix