fix flow def error event