Correct loan, crash when empty cart