Edited q_recomb to prevent NAN problems