Fix for WK-53: PyTransform edits the wrong columns
Fix an IndexOutOfBounds exception