Fix console error on dashboard