Fixed error with static variables and static methods in ResourceManagers.