fixed card bugs