fixed the normalization/scaling bug