bug solved sort by balance