pageOffset initialization fix