Fixed bugs in dashboard_items API for apps.