Fix msg_size log bug