dashboard: bug fix in js