fixed solve_psd I broke earlier this week