fixed  registerAssets()