fix undefined messages