Fix sample comparison