Added debug patch for reset_msgid