Fix problem in collapse of the top bar