Fixed the visit error