bugfix

added isMerging variable