fixed error on submit when number is not really a number (optional), fixes #187