fixed a nasty bug with str(item.text())