fix reference file resolving.