fix io return value after io.hook.afterComplete