fix isEnd
readme