Apparently my error-throwing made the iterator stop working, so I changed it