fix for login error 'An item with the same key has already been added'