Fixed bug from previous commit
Removed duplicate dep check