fixed bug for page size