Fix reference computation for WIG projects