[topbar] fixed js bug