Make sure the context is acquired for the iteration