fix #97 - visibility toggle bug

todo: write test for this case later, I'm sleepy right now