Fix word increment logic.