fix target searching