dashboard: bug fix with function constructor