if offset is set and limit is not, set limit to 1