Fixed settings and fixed logging crashes