fixed a problem with initializing unions