How believable is the deus ex machina through which Jim is freed?