fixed toggling issue with floats