fix speacial bool type value

fix speacial bool type,  fix bool value to 1/0