fixed wrong type for state manager

thanks to @n_holder for noticing the bug