fix valid property after using regex for floats