Corrected of a layout bug with the card layout