Fix bug in factor_norm