fix "Use of undefined constant DEMO_EOL" notice