fixed bug in finding property indices; was starting from position 2
(propIndex=1 then propIndex+1) instead of position 0, since arrays are 0
indexed