Fixed errors in pow function call