fix current measurement