fix typo of ends to end

Simple spelling fix