remove unused data args for triggering error event