fix files mapping from path to id