Update for vs2010 compatibility
Modified model indices