Fixed bugs in dashboard_items API.