Adapt IORef