fixed a bug in styles