fix crash in the new warning message.