fixed changing sites per page bug with pagination