a serious array index bug fixed.