fix toolbar behavior