Fix a bug with String flags (Inventories, TP, ..)