Fix transunit focus getting stuck in a loop