Fixed bug in get/setSelectedModels by offset for table view