fixed conversion issue for float values