fixed a problem with normalization of the variable