fix math::pow case x is negative and y is integer