Reset the buffer when scanning several classes.