Fixed some problems and add pseudo-style-class.