Bugfixes related to settings and gui not synced