fix a wrong if statement, change hvdc to voltage