Fix wrong pairs of flags