fixed comparing norm instead of dot