Fix MD5 generation