Fix to set visit date