Fixed some problems with the way number input fields worked.