fix out_q patch