Fix function exponentiation