Fix Matrix update.