fix converting BOOL attribute value

Close GH-1