small bug in inverse

fixed it