Another bug fix in appointment report