pc.math.log2 changed to Math.log2 patch