Fix coroutine detection