Bugfix in MERGE pattern