fixed removing of internal style attributes