Fixed bug with broken floating point