fixes form states