bugfix: do not lose focus after editing the last row