Fixed error in a visibility condition