Fix crasher bug when X partially unavailable. When a prep function fails, set its ok[] element false rather than leaving it uninitialized (and thus using stack trash later).