Fix return_error mode when calling api