Fix circular errors when adding a asset dependency