Fix regression: Set Text.dirty before we use it.