Fix bug when not speciying a limit