Fixed bug where directories would not show up in the right parent