fix crash on x86_64