Fixing file lookup