Fix PathAnimation after refactoring