fixed getvoltage