fixing empty style attrs failing