fixed bool compare