fixed bad last frame