Fix environment reference