fixed seg fault for blank line