Fixed issue with rounding error causing strange colors