fix segfault ls-l