fixed bug in cthick. Variable Iab instead of iab (same as last fixed bug
in cthin)