Fixed issue where doctor can see all appointments