Fix tuple comparison