fixed a bug with target spans in the last split