fixed bug with ls