Fix js error on dashboard screen