fixed bug on converting string to float value