fixed error with thumbnail class