fix the calculation of current density
ready for merge