remove parent in style text which cause error