fixed line num off-by-one error