getting error that Q must be PSD