Fix secure pool logic.