fixed bug with x86_64 arch