fixed Pagination to make it work with all controllers
fixed get property bug