Fix bugs of styles