fixed wrong logic when automerging geometry attributes