Reorder constructor to avoid referencing uninitialized variable when environment contains a self-referencing proc