prevent some malformed events