fixing process states