fix bug with using variables as matrix elements