The visibility functionality broke at some point. Doesn't work in demo 12.50. This commit fixes it.

https://superb.lighthouseapp.com/projects/99604/tickets/135-fix-visibility