bug fixes
Debugged ls.