Fix broken widget and dashboard loading on client side (thanks @hodgestar)