fixed ls parsing bug