more thorough removal of empty styles