Fix modal size and prevent error in listing search