Bug fix: reinitialize itemsData array when the user logout