Fix bug for inline editing.