fix a segment fault caused by assign the whole var not the index part to the block indices (untested)