fixed npe on rare occasion of show element in presence being null