changed magic property to getter call in Pagination

issue #1228