Fix for not preserving existing element styles