fix for handling float values