Fixing directory stuff.