Fixed missing environment reference