case comparison bug