Bug fix for energytool setup