fixed the bug with x64 architecture