Fix forward-char and backward-char bug.