Bugfix for conversion to another format