fix dep count bug