Fix limit and offset