fix limits, sorts and pagination