fix thumbnail extension bug