Fix error initialising settings