Attempt at fixing the invis glitch.