Fixed bugs in AssetManager and UIScaler.