bug fix in range block code, spelling error