fixed a bug in the thumb class