minor bug in add debt function
final