there was a small error in inverse

fixed it