fixed small bug in discharges form