Fixes matrix test script.