Fix address comparison bug