fix the md5 generation way