fix duality gap