fixed bool issue