fixed bug causing error for thin > 1