Web/loans bugfix