fixed the timing of toolbar sizing