fixed the bug regarding the (in same cases) broken directory listings