fixed call to solve

Need to only pass one parameter to solve to get  the inverse matrix