Fix #10
Merge pull request #11 from injixo/union_bug

Fix #10