correcting a bug related to styles