thickness bug fixed