Fix the behavior of thumbnail setting(#137).