fixed mistake in matrix vars