Fix needCellWidget and canEdit