fix "Error: comparison of String with Float failed"