Fix bug with showing incorrect result for 'text' items