fixed bug with dependencies