gaussian empty recored npe fix