fix density_fit problems; mask NaN values away