fixed bug found when arow is already replaced.
also when sencond row is same as the beginning row, or third ...