fix toolbar auto hide and show bug.