fix auto end?

now watch it break.