Fix settings bug