Fix small isTarget bug