fix update appointment bug