clean up matrix inverse for fvar