Fixes a playback studder with the JGAnimation class.