Why does my guitar do this on the twelfth fret

As you can see i can play perfectly fine all the strings on the twelfth fret but the A string sound so bad at the twelfth fret and i can play the eleventh and thirteenth fina so the problem seems to be with the twelfth