Ensure env is always available for freezing constraints