Fixed q_multiply