Fix attribute merging.