fix init_q for search