Fix false-positive duplicate format detection