Fix bug: invalid focus after edit table