fix bool issue