resourcemanager fix #2