correcting zero current calculation