fix card assignment