Update merge_groups.cpp

fixed wesley_merge for new circumstances