Fixed an error where an invalid number would not be converted to 0 if it was entered twice in a row