Fix text object bug with just one element