Fixed bug in LCP solver