fix #17. fix wrong comparing condition about boolean attribute