fixed index panic error when #offsets is one less than #lines
fixed index panic error when #offsets is one less than #lines

control-center/serviced,control-center/serviced,control-center/serviced,control-center/serviced,control-center/serviced,control-center/serviced,control-center/serviced,control-center/serviced