Fixed a bug on loan+user creation.