Fixed animation race condition on load