fixed some bugs of styles