Actually fixed 'final_hamming'