fixed bug with getPage