Fix some toEnder() function, add verify()