internal: remove bad variable, double dependencies check