Very basic Clarke transform question
That image is reversed, "Uc" was swaped by "Ub" in that picture, so you are actually doing nothing wrong, your formula for "U_beta" is correct if you follow that picture.

The first decomposition that you showed is for the phasors in the left: