Bug fix where state would not be alterable