Fix card index layout