fix duplicate frame bug