Fixed bug with dependencies