math.sqrt bug fix