Fix uninitialized variable problems in gen_adldata
Write out all four operators before performing other operations, like key on