Fixing bugs in animation exporting