Fixed bug where wrong inverse was returned when matrix was updated