fix the empty content NullPointException