parse limit as a number instead of string