Fix missing state init.