thumb script bug fix