Fixed a constant lookup issue related to StatHat