BaseListModel: fix crash caused by multiple definition