fix for visited