compare bug fix