Fix the bug. some time the bar cannot dismiss.