Fix line parsing bug