fixed CACTUS detection