fixed issues with empty pageVisible (bug 232)