Added a final frame compensation to animation