Fix (hacky solution). lcvar is only an integer value to index the state vector in the simulator.