Issues with the bool compare