Continuum limit of the O(N) Heisenberg model in two dimensions