bug fix at demoController