fixed an async gotcha