fix memory bug when output line isn't valid