fix bug handling limit when None