Fix bug in the style code