Fix _endEmitted typo