fix page visible setting