ensure animation to value is last frame written; fix issue #165