fixed another  error.changed charges controller line 5