fix pages visibility setting