fixed calculation of inverse operations