fix a bug (crushing when resize window or change "spread-layout-axis")