Fixed bug connected to all matrices and maxValueTracker.