Fix compile error by providing pageSize