getCurrentPage fixed