fix edit visit