fix complete event bug