thumbnail bug fix & caching