fixed thumbnail dir bug