fix bug
implement the case of continuing frame