blank search fixed and sends to undefined