solve last QP bug