fix null balance bug