fixed invalid base matrix