fix compile in environments/production