bug fix in flag transformations and threshold set to 1.0e-6 instead of 1.0e-8
in order to solve [4 6 8]^5 correctly