math fallacy problem: $-1= (-1)^3 = (-1)^{6/2} = \sqrt{(-1)^6}= 1$? I know there is something wrong with this but I don't know where. It's some kind of a math fallacy and it is driving me crazy. Here it is:
$$-1= (-1)^3 = (-1)^{6/2} = \sqrt{(-1)^6}= 1?$$

Taking square roots is in a sense a two valued function, because every non-zero complex number $z$ has two distinct complex numbers $w_1, w_2$ for which $w_1^2=w_2^2=z$.
