Fixed getPage API issue