Setting correct number of frames

After :append() function is called total frames will be set to correct number.