fix typo
get rid of one of two for loops when loading directory (thumbnails)