fixes missing/wrong deps and unchecked variables