Fixed floating error bug with pow() being too big.