Minor bugfix to loading settings