Fixes incorrect dependency condition