fix bug edit appointment