Fix bug on adding cards