fixed sign error on q_b