fix totem build