fix wrong state space of W