fix card pagination