fixing exit behavior for floats