fix balancing