fix: should throw NoSuchElementException