bug with incorrect union fixed