fixed typo in getInverse method name