bug fix in appointment setting authorization