fixed some bugs about styles duplications