fixed a bug of saving multiple copies of new styles