remove last CUSTOM_ENV