fix guard setting