fix bug adding text content when is empty