Fixes to frame exporting.