Fixed bug with build of touch sets

Resolved #1144