Fixed animation issue