Fixed animation problem