fixes #340 - patch for thorax example