Fix inactive checking