correctly remove old styles