fix complete event of cortex