bug fix for the CSS generated from in master_resource_expansion.js