fix dependency ring