Fixed error in Y to D conversion of the currents