bugfix for thumbnails