Fixed bug of union