fix for an editor lines manipulation bug