Fix tmgmt_file