ensure the paired files are different

thanks to Nelli Talo for the report