visit duration fix