fixed bug, pages should be int