Fix line count