corrected boolean setting from attribute value