Fix settings not saving and also fix wrong license header