Fixed problems with directory listings