fix single-op insertion

Resolve conflicts from #221.