Fix problem with editing floating point numbers