fixed bug where path lib reference was being overridden