fix comparison of msg md5 (fix #112)