fixing the wrap function https://github.com/laverdet/node-fibers/issues/127