fix bug for empty element text process