fix char range for #960