bug fix for synModify array out of bound