fixing card assigment