fixing a loop bug in thumbnails and typeahead.