fixed logic error in screen search