fixed typo of getStateHelper