fixed skipping when changing animation speed