Set dependencies correctly