Fixed settings directory issues