Fix problem with style references