Fixed a rendering issue caused due to floating point calculations.