resolved issue 284, can now set the number of items per page correctly