bugfix for a convert script