fixed flickering in layout and spring dynamic works