Repaired pickle/unpickle flags.