fixing back the logic behind checking of MERGEABLE flags on a bug