[PATCH] Avoid an error when creating a modified lang environment