Fixed compiler warning in norm check