Added another check for dead media