fixed initialization of active balance