Fix bug where appointment end times exceeded availability times.