Hero class id is used to determine hero object appearance, but after than we use subID to store it's unique id. This change should fix issues 2127 and 2277 since random heroes not going to override others in heroesPool.