fix shaking of layout toolbar