fixed limit and offeset bug

Fixed limit and offeset bug - When 0 is passed for limit or offset, the parameters did not get applied.