Fix error with recurring appointments