fixed some bugs in converting problem to dual conic problem.