Use QList::value instead of QList::operator[], avoid crash