split bug leading to negative balance fixed