fix assetmanager exception when linkAssets is true