potential bugfix for union