Cards now close properly