First thing first, you need to be sure, first.
Is it *set Optimist, or *set Pessimist?
Is it *set Humble, or *set Arrogant?
Keep in mind that each of those pairing are actually a single stat, not two stats opposing each other.
Have you assured yourself? Now move on to the 2nd step.
Did you refresh your browser when trying out the changes you’ve made?
Make sure to press that F5 for every small tit-bits change you’ve made.
And that’s all about it, really.
Try it again.
Or perhaps you can show us the whole code as @Eiwynn suggested. Maybe we can spot the exact culprit and help you out.