Fixed an issue with asset manager creation