First increase index, then write.

This way you won’t see random blips without typing (from 60s ago).