Fix bug in get_msg_id