Fixed floating point problem