fixed setting file ref