bugfix for the x64 pointer truncation issue.