StateProcess type fix