Fix stm/ldm formatting in temp data