Fix 64 bit problem in .NET