fixed new visit issue