Fixed 64bit compatibility.