Hot fix on the dynamic form styling bug on redraw

Hot fix on the dynamic form styling bug on redraw

#2357