fix page check