fixed "msg" field reset