fix when data comming from the store is an object instead of a string