Replace styles to local.