Fix bug in ellipsis hook.