Bugs in editing fixed.

Signed-off-by: Difegue <sugoi@cock.li>