Fixed x86 build

Fixed crashes