fix toolbar bug after remove