remove erronoeus declaration of code elements to display as block (closes #598)