Fixed bug in harness generation