fixed searching multiple empty lines