fixed thumbnail bugs