detect-engine fix