fixed double normalization problem