Fixed issue when exporting animations