Fixed a bug in AssetManager.