restoring missing tmp structure