Gallery thumbnails weren't displaying sometimes.