Fix bug with -x not saving text due to length not being updated.