When scale.x and _scaleX  are 0 both the result for scale.x/_scaleX is NaN, so just added a little fix in this case