replace 0 by average in logFeature