fixed withoutBar bug