fix process status bugs