Switch from find_all to find_key in fix_inst()

- Makes code much more readable, without file[0].value everywhere