fix error on data page when there's no index data