Fix "limit" arg behaviour in list and search commands