temporary fix for styles in csp event observer + fixed merging of styles