Fixed visibility typo and flip-hidden bug.