Fixing the layout's style references