fix ref and diff paths