Fix thumbnail issue introduced in pull #937