bug: resume() should occur at the correct index