fix boolean attribute bug