fixed bug in union with empty trees