fix Math::Pow issues