fixing next appointment date scheduling