fix dependency resolve bug (resource fetch on top level)