fixed some bug in dashboard