Fixup register lookup to file lookup