modified invocation of method updatePages
Merge pull request #1 from ivan348/updatingbug

modified invocation of method updatePages