Fix js error in admin panel.