resume correctly in next frame mode. #issue 56