fixed a problem with normalization of variable