fix bug `next` => `return`