Fixed handling of negative hash codes in GradualActivationStrategy