fixing memory overwrite bugs in the new converters