fix in automatic selection of next row when enter is pressed