Bugfix estimate thickness

This should fix #103