Fixed bug in x86 compile