Fixed NPE in dashboard