Fixed crash in ResourcesActivity.