Cannot read property 'card-id' of undefined