Fixing exception about undefined message.