Correct bug with invisibility