Fix bug in editing title

Change-Id: I9b4490c9840521c094fb4452c31fa73d97408ae1