Fixed floating point division issue