bugfix in wavefield output