fixed scientific notation handling