Made some minor changes to assetanimation.d to stop crashes.