Fix process stop bug