fix certain issues with widget visibility conditions and static pages

should fix #107