merge mode 6 counting bugfix
multipass merge bugfix