fixed NPE if thumb isnt available