Fix search, when marking as active