re fixed first frame invalid issue