Patch for SegFault.