fixed a nasty bit of recursion in setting dependencies