Fix bug in precomputed inverse.