Fixing an issue in the visit import process