fixes bug, where the setting globals weren't set correctly on startup