fix the store will store duplicate id