Fixed bug with style cache when using inline styles