attempt at fixing nodes ordering when there are strings