Workaround an inssue with stupid .NET framework.