fix a bug in q table in reduced q