Multiplication of matrix expression and variables leads to stack overflow and matmul error

The issue was resolved by upgrading the packages to the latest release.