fix invalid log event