Fix matrix effect, so it works only when required.