Fixed search bug on loan