That looks like the culprit. It seems you need a case that uses the complex power function for negative x with non-integer y. Also, do you need a special case for x=0 and y=-1 to handle the 1/0 condition?