Fixed issues with setting styles.