fix first frame on restart