fixed null pointer in assetmanager