fixed Exception raised when clip text empty