fix complete callback