Add fix to gjf reset so that it will work with line splits