fixed bug with adding duplicate dependencies