Fixed small error in Resourcemanager