Fix visual jmp keys reset and malloc:// write error