bug fix in appointments