Fixed issue with related cards appearing multiple times