Fix bugs in styles.