Fix: reading from tempState instead of state