fixes widget visibility context