Fixed bug in union