Fix search checkbox bug