fix for check appointment helper