fix recursive dependencies error