Fix apply styles to dynamic objects