fixed error with 0 loans