Fix for OverflowException on x64