fixed an upgrade bug that was allowing deprecated elements to be shown