fixing boolean attribute handling