fix bug where File.Covars points to wrong directory