fixed floating point error of doom