Fixed attaching styles for rendered html