minor fix
the phase decomposition now works correctly