Fix 'reference is not a tree error' when installing.