Fixed multiple pages bug