Don't forget to set document modified afterward.

Change-Id: I5b2b9a3dad2aeee6bc5a4a4767b239c92865b2f4