edited bug for getting table elements