fix typo of ends to end