fix md5 generation