minor fix for visit directory