Corrections to method for getting inner element in table cell.