fix some bugs on style