fixes #3674 ie9 error in console When come out from Dashboard page

Fixed the issue and committed code for review, please check it.