Fix style formatting affects siblings outside the range