filter instances whose state is running