Fix reference path issues.