fix wrong dependancies check