fixed another layoutCards()