Fix recursive compare