Fix x86 optimization