fix set_pagination and range methods for posts view