Fixed tess variable handling - fixes #49