bugfix for thumb class
merged latest version