src/detect.py: fix memory element starting with memory: