Big Fix

Fix bug where some CDF files could not be saved. A more detailed
explanation will be put into the bugs section on GitHub,