Fix for floating point error in debug