BUG: sometimes smart quotes don't...

I’ve been noticing, sometimes when I type a quote mark or quotation mark, it’s a straight quote, not a smart quote. Smart quotes are turned on.

I think this happens the first time I’m editing a particular document in a session, but often this bug doesn’t happen. Perhaps the script doesn’t wake up?