Fixing some more errors and allowing the deep directory to work