Removing previously added style tags before adding new one.
Hopefully fixes #211 and #294.