fixing waitforvisible weirdness