fixed deps calculation